<!-- right-->
<div class="MemberMain">
<div style="margin-right:175px;">

<div class="title"><{t}>Receiving address changes<{/t}></div>
<form method='post' action='<{link ctl="member" act="saveRec"}>' extra="subMemAddr" id="member_addr">
  <input type="hidden" name="addr_id" value="<{$addr_id}>">
  <div class="FormWrap">
         <div class="division">       
       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="liststyle data"> 
       <col class="span-4 ColColorGray"/>
       <col class="span-auto"/>
        <tr>
          <th><{t}>Default Receiving Address:<{/t}></th>
          <td><{input type="radio" name="def_addr" options=$defOpt value=$def_addr}></td>
        </tr>       
        <tr>
          <th><em>*</em><{t}>Name:<{/t}></th>
          <td><{input class="inputstyle" name="name" type="text" required="true" value=$name}></td>
        </tr>
        <tr>
          <th><{t}>Tel:<{/t}></th>
          <td><{input class="inputstyle" name="tel" type="order_tel" value=$tel}><span class="infotips"><{t}>Telephone and contacts which must fill in a mobile phone<{/t}></span></td>
        </tr>
        <tr>
          <th><{t}>Mobile:<{/t}></th>
          <td><{input class="inputstyle" name="mobile" type="text" value=$mobile}></td>
        </tr>
        <tr>
          <th><em>*</em><{t}>Region:<{/t}></th>
          <td><{input type="region" name="area" required="true" value=$area}></td>
        </tr>
        <tr>
          <th><em>*</em><{t}>Address:<{/t}></th>
          <td><{input class="inputstyle" type="textarea" required="true" name="addr" cols="30" rows="3" value=$addr}></td>
        </tr>
        <tr>
          <th><em>*</em><{t}>Zip:<{/t}></th>
          <td><{input class="inputstyle" name="zip"  required="true" value=$zip}></td>
        </tr>
        <tr>
          <th></th>
          <td><input class="buttonstyle" type="submit" name="submit" value="Save"/><input class="buttonstyle" type="button" onclick="location.href='<{link ctl=member act=receiver}>'" value="Return"></td>
        </tr>
      </table>
    </div>
  </div>
</form>
<script>
if(!extra_validator['subMemAddr']){
  extra_validator['subMemAddr'] ={
    'order_tel':['Please enter at least contact phone and contact in a mobile phone',function(f,i){
        var tel = $('member_addr').getElement('input[name=tel]').getProperty('value');
        var mob = $('member_addr').getElement('input[name=mobile]').getProperty('value');
        if(tel.trim() == '' && mob.trim() == ''){
          return false;
        }else{
            return true;
        }
      }]
  };
}
</script>

</div>
</div>
<!-- right-->
